package co.fitstart.admin.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.courseware.dietary.DietaryProgramTemplate;

@Dynamic("hibernate")
public interface DietaryProgramTemplateDao {
    
    /**
     * 
     * @param ids
     * @return
     */
    @Query("FROM DietaryProgramTemplate WHERE disabled = false AND id in (:ids)")
    public List<DietaryProgramTemplate> list(@Variable("ids") List<Long> ids);

}
